/**
 * 调用该函数返回一段html代码
 */
function teacherLeftMenu() {
    return `<div class="row mt-4">
        <img style="width: 5rem;height: 5rem;" class="img-thumbnail mx-auto d-block rounded-circle"
            src="../imgs/444.jpg" alt="头像">
    </div>
    <div class="row mt-3">
        <h3 class="text-center">李羊羊</h3>
    </div>
    <div class="mt-3 d-flex justify-content-around">
        <a href="#" class="btn btn-outline-primary rounded-pill btn-sm">账号管理</a>
        <a href="#" class="btn btn-outline-warning rounded-pill btn-sm">输入邀请码</a>
    </div>
    <!-- 菜单导航栏 -->
    <ul class="list-group mt-3">
        <li class="list-group-item border border-0">
            <a class="link-secondary" href="#">
                <i class="bi bi-person-heart">学期教学</i>
            </a>
        </li>
        <li class="list-group-item border border-0">
            <a class="link-secondary" href="/techer/">
                <i class="bi bi-play-circle-fill">课程</i>
            </a>
        </li>
        <li class="list-group-item border border-0">
            <a class="link-secondary" href="#">
                <i class="bi bi-person-circle">教学</i>
            </a>
        </li>
        <li class="list-group-item border border-0">
            <a class="link-secondary" href="/teacher/depart.html">
                <i class="bi bi-envelope-paper-fill">系部管理</i>
            </a>
        </li>
        <li class="list-group-item border border-0">
            <a class="link-secondary" href="/techer/class.html">
                <i class="bi bi-people">班级管理</i>
            </a>
        </li>
        <li class="list-group-item border border-0">
            <a class="link-secondary" href="#">
                <i class="bi bi-chat-dots">消息</i>
            </a>
        </li>
        <li class="list-group-item border border-0">
            <a class="link-secondary" href="#">
                <i class="bi bi-chat-dots">下载中心</i>
            </a>
        </li>
    </ul>`;
}
let leftmenu = teacherLeftMenu();
// s使用jQuery的DOM操作将html替换到左侧菜单栏中
$("#leftmenu").append($(leftmenu))